structure. This also happens to ensure correct t_rec
alignment on ia64. A better layout for trace buffers
will be coming soon.
Signed-off-by: Keir Fraser <keir@xensource.com>
{
buf = t_bufs[i] = (struct t_buf *)&rawbuf[i*opt_tbuf_size*PAGE_SIZE];
buf->cons = buf->prod = 0;
- buf->nr_recs = nr_recs;
t_recs[i] = (struct t_rec *)(buf + 1);
}
struct t_buf {
unsigned int cons; /* Next item to be consumed by control tools. */
unsigned int prod; /* Next item to be produced by Xen. */
- unsigned int nr_recs; /* Number of records in this trace buffer. */
/* 'nr_recs' records follow immediately after the meta-data header. */
};